<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
            <li class="active"><a href="{:url('AdminCategory/index')}">{$type=='staff'?'员工':''}分类列表</a></li>
            <if condition="$type eq 'user'">
                <li><a href="{:url('AdminCategory/add',array('type'=>$type))}">新增分类</a></li>
                <else/>
                <li><a href="{:url('AdminCategory/addStaffCategory',array('type'=>$type))}">新增员工分类</a></li>
            </if>
			
		</ul>
        
		<table class="table table-hover table-bordered  margin-top-20">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>分类名</th>
					<th>父类ID</th>

					<th>商户ID</th>

					<th>状态</th>
                    
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
                    <td>{$vo.name}</td>
					<td>{$vo.parent_id}</td>
					<td>{$vo.tenant_id}</td>
                    
					
					<td>
						<switch name="vo.status">
							<case value="1">
								<span class="label label-success">正常</span>
                            </case>
                            <case value="0">
								<span class="label label-danger">无效</span>
							</case>
						</switch>
					</td>
					
					<td>
							<!-- <a class="btn btn-xs btn-primary" href='{:url("AdminUser/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a> -->
							<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminCategory/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>